<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            background-color: red;
        }
    </style>
</head>
<body>
    <body>
        <div id="childrenDom">
            children页面
        </div>
    </body>
    <script type="text/javascript">
        window.onload = function () {
           //父页面的window对象
            var _parentWindow = window.parent
          //父页面的window对象
            var  _parentDom = _parentWindow.document.getElementById('parentDom');
            console.log(_parentWindow,_parentDom,'子页面里面获取的父页面里面的dom元素');
        }
    </script>
    
       
    <script>

    </script>
</body>
</html>